package com.mvvm.start.main.mvvm.m

import com.mvvm.start.base.bean.UserInfoResult
import com.mvvm.start.common.network.RetrofitHelp
import com.mvvm.start.main.api.MainApi


/**
 * @author lmy
 * @功能: MineFragment的Repository
 * @Creat 2021/3/12 11:18 上午
 * @Compony 465008238@qq.com
 */
object MineRepository  {

    /**
     *获取用户详情
     */
    suspend fun getUserInfo(): UserInfoResult {
        return RetrofitHelp.creat<MainApi>().getUserInFo().data!!
    }
}